package com.qidian.mes.qc.controller;/**
 * ClassName:CheckCode
 * Package:com.qidian.mes.qc.controller
 **/

import com.qidian.mes.qc.service.CheckCodeService;
import com.qidian.mes.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ppc
 * @Conpany study
 * @Description:
 * @Time 2024/4/10 17:04
 *
 **/
@RestController
@CrossOrigin
@RequestMapping("/rules")
public class CheckCodeController {
    @Autowired
    private CheckCodeService checkCodeService;
    @RequestMapping("/query")
    public QdResult query(String rulesName)
    {
        return checkCodeService.query(rulesName);
    }
}
